{include file="public/header" /}

<form class="ajax-form">
	<section class="panel panel-default">
		<header class="panel-header">
			<div class="title"><i class="icon-arrow-down-solid"></i>{$_cur_title}</div>
			<div class="opt-box" style="float: right">
				<a href="" class="jump"><i class="icon-back"></i>返回</a>
			</div>
		</header>
		<div class="panel-body">
			<div class="form-group">
				<div class="name">名称</div>
				<div class="input">
					<input type="text" name="title" value="{$info['title']}" class="form-control" placeholder="名称不能为空！" required>
				</div>
			</div>
			<div class="form-group">
				<div class="name">URL地址</div>
				<div class="input">
					<input type="text" name="url" value="{$info['url']}" class="form-control" placeholder="URL地址">
				</div>
			</div>
			<div class="form-group">
				<div class="name">上级菜单</div>
				<div class="input">
					<select name="parent_id">
						<option value="0" {$parent_id == 0 ? 'selected' : ''}>顶级菜单</option>
						{volist name="list" id="row"}
							<option value="{$row['menu_id']}" {$info['parent_id'] == $row['menu_id'] ? 'selected' : ''} {$row['menu_id'] == $info['menu_id'] ? 'disabled' : ''}>=={$row['title']}==</option>
						{/volist}
					</select>
				</div>
			</div>
		</div>
	</section>

	<div class="form-group-submit ">
		<button type="submit" class="btn btn-sm bg-info"><i class="icon-save"></i>保存</button>
		<button type="button" class="btn btn-sm bg-cancel jump"><i class="icon-back"></i>返回</button>
		<div class="fixed-cover"></div>
	</div>
</form>
{include file="public/footer" /}